package wjh.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wjh.mapper.ZlyPatientMapper;
import wjh.pojo.Patient;

@Service
public class ZlyPatientServiceImpl implements ZlyPatientService {
    @Autowired
    private ZlyPatientMapper zlyPatientMapper;


    @Override
    public Patient findByName(String pname) {
        return zlyPatientMapper.findByName(pname);
    }

    @Override
    public Patient findById(Integer pid) {
        return zlyPatientMapper.findById(pid);
    }
}
